package com.tuu.configBean;

import org.springframework.context.annotation.Configuration;

@Configuration
public class FilterConfig {
    /*
    @Bean
    public FilterRegistrationBean buildAFilter() {
        FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean();
        //数字小  优先执行
        filterRegistrationBean.setOrder(2);
        filterRegistrationBean.setFilter(new AFilter());
        filterRegistrationBean.setName("filter1");
        filterRegistrationBean.addUrlPatterns("/**");
        return filterRegistrationBean;
    }
    @Bean
    public FilterRegistrationBean buildBFilter() {
        FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean();
        //数字小  优先执行
        filterRegistrationBean.setOrder(4);
        filterRegistrationBean.setFilter(new AFilter());
        filterRegistrationBean.setName("filter1");
        filterRegistrationBean.addUrlPatterns("/**");
        return filterRegistrationBean;
    }
*/
}
